package com.jy.adscm.operation.pebase.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2019-04-10
 */
public class PeDocument implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    /**
     * 疾病id
     */
    private Integer did;
    /**
     * 文献
     */
    private String docName;
    private String docType;
    /**
     * 发表期刊
     */
    private String publications;
    /**
     * 发表人
     */
    private String publisher;
    /**
     * 发表人
     */
    private Date publishTime;
    /**
     * 上传人
     */
    private String creator;
    @TableField(exist = false)
    private String creatorName;
    /**
     * 上传时间
     */
    private Date createTime;
    /**
     * 上传路径
     */
    private String path;
     @TableField("file_name")
    private String   fileName;
    /**
     * 星级
     */
    @TableField("level")
    private  String level;
    /**
     * 职位
     */
    @TableField("position")
    private  String  position;
    /**
     * 编码
     */
    @TableField("code")
    private String  code;

    @TableField(exist = false)
    private  Integer relationId;

    public Integer getRelationId() {
        return relationId;
    }

    public void setRelationId(Integer relationId) {
        this.relationId = relationId;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getDid() {
        return did;
    }

    public void setDid(Integer did) {
        this.did = did;
    }

    public String getDocName() {
        return docName;
    }

    public void setDocName(String docName) {
        this.docName = docName;
    }

    public String getDocType() {
        return docType;
    }

    public void setDocType(String docType) {
        this.docType = docType;
    }

    public String getPublications() {
        return publications;
    }

    public void setPublications(String publications) {
        this.publications = publications;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getPublishTime() {
        return publishTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getCreateTime() {
        return createTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }


    @Override
    public String toString() {
        return "PeDocument{" +
                "id=" + id +
                ", did=" + did +
                ", docName='" + docName + '\'' +
                ", docType='" + docType + '\'' +
                ", publications='" + publications + '\'' +
                ", publisher='" + publisher + '\'' +
                ", publishTime=" + publishTime +
                ", creator='" + creator + '\'' +
                ", creatorName='" + creatorName + '\'' +
                ", createTime=" + createTime +
                ", path='" + path + '\'' +
                ", fileName='" + fileName + '\'' +
                ", level='" + level + '\'' +
                ", position='" + position + '\'' +
                ", code='" + code + '\'' +
                '}';
    }
}
